﻿using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace Contra
{
    class MonsterFactory 
    {
        
        public static Enemy GetRegularEnemy(ContentManager content)
        {
            Random random = new Random();
            int randY = random.Next(100, 400);

            return new Enemy(content.Load<Texture2D>("Enemy"),
                            new Vector2(750, randY),
                            content.Load<Texture2D>("Bullet")) { Health = 3, IsVisible = true};
        }

        public static Enemy GetBoss(ContentManager content, GraphicsDevice graphics)
        {
            Random random = new Random();
            int randY = random.Next(100, 400);
            Texture2D bossTexture = content.Load<Texture2D>("Boss");
            return new Boss(bossTexture,
                            new Vector2(graphics.Viewport.Width - bossTexture.Width ,graphics.Viewport.Height - bossTexture.Height),
                            content.Load<Texture2D>("Bullet")) { Health = 50, IsVisible = true };
        }
    }
}
